package is.billsharing.app;

import java.util.ArrayList;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.NameValuePair;
import org.json.JSONArray;
import org.json.JSONObject;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;

public class BillActivity extends Activity {
	private static final String PREFS_NAME = "user";
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.bill);
        Button billreport,payreport;
        billreport=(Button)findViewById(R.id.button1);
        payreport=(Button)findViewById(R.id.button2);
     
        billreport.setOnClickListener(new View.OnClickListener() 
        {
            public void onClick(View v) 
            {
                // TODO Auto-generated method stub
                // TODO Auto-generated method stub
            	Intent intent = new Intent(BillActivity.this,BillReportActivity.class);
				startActivity(intent);
           
            	   

            }
        });
        payreport.setOnClickListener(new View.OnClickListener() 
        {
            public void onClick(View v) 
            {
                // TODO Auto-generated method stub
            	Intent intent = new Intent(BillActivity.this,ReportPaymentActivity.class);
				startActivity(intent);
            	   

            }
        });
}
}